package struktury;
public class StackList<E> implements Stack<E> {
	private List<E> lista=new List<E>();
	public boolean IsEmpty(){
		return lista.isEmpty();
	}
	public Element<E> pusch(E newValue){
		lista.addLast(newValue);
	
		return lista.getLast();
	}
	public E pop(){
		E doZwrotu=lista.getLast().getValue();
		lista.removeLast();
		return doZwrotu;
	}
	public E show(){
		return lista.getLast().getValue();
	}
}
